package db;

/**
 * Account.java represents data transer object Account
 * 
 * @author XA9
 * 
 */

public class Account {

	/** int accountnumber */
	private int accountnumber;
	/** String account (accoutname) */
	private String account;
	/** double amount */
	private double amount;
	/** double rate */
	private double rate;
	/** int loginId */
	private int loginId;

	/**
	 * 
	 * Account constructor initialize variable as this.variable
	 * 
	 * @param accountnumber
	 * @param accoutname
	 * @param amount
	 * @param rate
	 * @param loginId
	 * 
	 * 
	 * */
	public Account(int accountnumber, String account, double amount,
			double rate, int loginId) {
		this.accountnumber = accountnumber;
		this.account = account;
		this.amount = amount;
		this.rate = rate;
		this.loginId = loginId;

	}

	/**
	 * Returns integer
	 * 
	 * @return accountnumber
	 */
	public int getAccountnumber() {
		return this.accountnumber;
	}

	/**
	 * Returns String
	 * 
	 * @return account
	 */
	public String getAccount() {
		return this.account;
	}

	/**
	 * Returns double
	 * 
	 * @return amount
	 */
	public double getAmount() {
		return this.amount;
	}

	/**
	 * Returns double
	 * 
	 * @return rate
	 */
	public double getRate() {
		return this.rate;
	}

	/**
	 * Returns integer
	 * 
	 * @return loginId
	 */
	public int getLoginId() {
		return this.loginId;
	}

} 

